package com.sq.partner.manager.service;

import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.SaleConfig;
import com.sq.partner.manager.util.Page;

/**
 * 
 * @author men
 *
 */
public interface SaleConfigService {
	/**查询下一个跟单代码**/
	public String queryNextAgentNo(String agentType) throws Exception ;
	/**增加**/
    public boolean addSaleConfig(SaleConfig saleConfig) throws Exception;
	/**删除**/
    public boolean delSaleConfig(SaleConfig saleConfig) throws Exception;
    /**查询列表*/
	public Page<Map<String,Object>> queryPageByCriteria(Page<Map<String,Object>> page) throws Exception;
	/**跟单费用配置*/
	public List<SaleConfig> searchSaleConfigsListByplanCode(
			Map<String, Object> maps)   throws Exception;
	/***根据跟单配置代码查询*/
	public SaleConfig searchSaleConfigById(String agentNo) throws Exception;
	/***更新跟单配置*/
	public boolean updateSaleConfig(SaleConfig SaleConfig) throws Exception;
	/**导出**/
	public  List<Map<String, Object>> implSaleConfigs(
			Map<String, Object> maps) throws Exception;
}
